package com.xuecheng.content;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync // 开启异步多线程注解支持
// 开启feign远程调用
@EnableFeignClients(basePackages = {"com.xuecheng.*.api"})
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.xuecheng.content.mapper")
@ComponentScan(basePackages = {
        "com.xuecheng.content",  // 内容微服务
        "com.xuecheng.web",      // web插件
        "com.xuecheng.mybatis"   // mp插件
})
public class ContentApplication {

    public static void main(String[] args) {
        SpringApplication.run(ContentApplication.class, args);
    }
}